<div class="course-item row">
  <div class="col-xs-12 col-sm-3 course-img">
    <a href="{{ path('course_show', {id:course.id}) }}" target="_blank">
      {% if course.discountId > 0 %}
        {% if course.discount == 0 %}
          <!-- 限免 -->
          <span class="tag-discount free"></span>
        {% else %}
          <!-- 折扣 -->
          <span class="tag-discount"></span>
        {% endif %}
      {% endif %}
      {% if course.serializeMode == 'serialize' %}
        <span class="tags"><span class="tag-serialing"></span></span>
      {% elseif course.serializeMode == 'finished' %}
        <span class="tags"><span class="tag-finished"></span></span>
      {% endif %}
      {% if course.type == 'live' %}
        <span class="tags">
          <span class="tag-live"></span>
        </span>
      {% endif %}
      {{ lazy_img(filepath(course.middlePicture, 'course.png'), 'img-responsive course-img', course.title) }}
    </a>
  </div>

  <div class="col-xs-12 col-sm-6 course-info">
    <div class="title">
      <a class="link-dark" href="{{ path('course_show', {id:course.id}) }}" target="_blank">
        <span class="course-category offline-course">线下培训</span>
        {{ course.title }}
      </a>
    </div>
    <p class="course-intro hidden-xs">简介：特色小吃是中国餐饮不可缺少的一部分，
      并成为中国饮食生活的主要内容。绝非只是在三餐之间填饱肚子...
    <!-- <div class="metas clearfix"> -->
      <!-- {% if setting('course.show_student_num_enabled', '1') == 1  %} -->
      <!-- <span class="num"><i class="es-icon es-icon-people"></i>{{ course.studentNum }}</span> -->
      <!-- {% endif %} -->
      <!-- <span class="comment"><i class="es-icon es-icon-textsms"></i>{{ course.ratingNum }}</span> -->
      <!-- {% include 'TopxiaWebBundle:Course:Widget/course-price.html.twig' with {shows:'price'} %} -->

    <!-- </div> -->
    <p class="course-provider">学校：<a href="#" title="">八千味餐饮投资有限公司</a></p>
  </div>

  <div class="col-xs-6 col-sm-1 course-price">
    <div class="course-metas">
      {% include 'TopxiaWebBundle:Course:Widget/course-price.html.twig' with {shows:'price'} %}
    </div>
  </div>
  <div class="col-xs-6 col-sm-2 course-join">
    <button class="btn btn-warning" type="button" name="button">查看详情</button>
  </div>
</div>
